package net.wofly.sale.commodity.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 商品渠道及价格设置
 * @author lign
 * @version 1.0
 * @created 10-9月-2017 14:14:50
 */
@Data
@Entity
@Table(name = "sale_commodity_commoditychannel")
@ApiModel(description = "商品渠道及价格设置实体")
public class CommodityChannel {

	@Id
	private String commodityChannelID;
	/**
	 * 渠道名称
	 */
	@ApiModelProperty(value = "渠道名称", required = true)
	private String channel;
	/**
	 * 商品渠道编码
	 * <ul>
	 * 	<li>在商品编码前+渠道编码=商品渠道编码</li>
	 * </ul>
	 */
	@ApiModelProperty(value = "商品渠道编码：在商品编码前+渠道编码=商品渠道编码", required = true)
	private String commodityChannelCode;
	/**
	 * 商品渠道价
	 */
	@ApiModelProperty(value = "商品渠道价", required = true)
	private Double commodityChannelPrise;
	@ApiModelProperty(value = "商品主键", required = true)
	private String commodityID;
	private Long modifyDate;
	/**
	 * 有效状态
	 * 1为有效；0为无效
	 */
	@ApiModelProperty(value = "有效状态 1为有效；0为无效", required = false)
	private Integer status = 1;
	
	@Transient
	@ApiModelProperty(value = "商品名称", required = false)
	private String commodityName; 
	
	@ApiModelProperty(value = "商品渠道名称", required = false)
	private String commodityChannelName;
	
	@ApiModelProperty(value = "商品渠道名称拼音", required = false)
	private String commodityChannelNamePinYin;
	
	@Transient
	@ApiModelProperty(value = "渠道名称", required = true)
	private String channelStr;
	

	public CommodityChannel(){

	}
	@Override
	public void finalize() throws Throwable {

	}

}